

export default function ({app,store,params,redirect,route}){
    //获取默认语言
   const defaultLang=app.i18n.fallbackLocale
   let lang=store.state.user.lang||defaultLang
   let urlang=params.lang
   console.log(lang,urlang,'zhongji')
   if(!urlang||urlang!==lang){
     redirect('/'+lang+route.fullPath)
     return
   }
   
  
   

}